package cj.web.kly.constants;

public enum GroupPeopleTypeEnum {
	//人员在部门类型（0.部门负责人；1.普通人员）
	TYPE_0("部门负责人",0),
	TYPE_1("普通人员",1);

	private String name;
	private int value;
	
	private GroupPeopleTypeEnum(String name, int value){
		this.name = name;
		this.value = value;
	}
	
	public static String getName(int value) {
        for (GroupPeopleTypeEnum c : GroupPeopleTypeEnum.values()) {
            if (c.getValue()==value) {
                return c.name;
            }
        }
        return null;
    }
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
